]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
telepathy-client: Adjust to gjs array changes
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 23 Jun 2011 22:20:43 +0000 (00:20 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 23 Jun 2011 22:57:11 +0000 (00:57 +0200)
Since bug 646632 was fixed, array lengths are no longer passed as
separate parameters. Adjust to that change.

js/ui/telepathyClient.js

index ba6113d8f5e5d5b61feae0d5d3b7782c6cfb2683..5893c583c228604ad698ae3b7ceb454165035232 100644 (file)
@@ -103,7 +103,7 @@ Client.prototype = {
             this._finishObserveChannels(account, conn, channels, context);
         } else {
             Shell.get_self_contact_features(conn,
-                                            contactFeatures.length, contactFeatures,
+                                            contactFeatures,
                                             Lang.bind(this, function() {
                                                 this._finishObserveChannels(account, conn, channels, context);
                                             }));
@@ -123,8 +123,8 @@ Client.prototype = {
                continue;
 
             /* Request a TpContact */
-            Shell.get_tp_contacts(conn, 1, [targetHandle],
-                    contactFeatures.length, contactFeatures,
+            Shell.get_tp_contacts(conn, [targetHandle],
+                    contactFeatures,
                     Lang.bind(this,  function (connection, contacts, failed) {
                         if (contacts.length < 1)
                             return;